{template 'common/header'}

<div class="main">
    <ul class="nav nav-tabs">
        <li
        {if $operation== 'display'} class="active"{/if}><a
            href="{php echo $this->createWebUrl('kjManage');}">微砍价活动管理</a></li>
        <li
        {if $operation == 'post'} class="active"{/if}> <a
            href="{php echo create_url('platform/reply/post',array('m'=>'mon_wkj'));}">添加砍价活动</a></li>


    </ul>


    <div class="panel panel-default">
        <div class="table-responsive panel-body">




            <div class="row">

                {loop $list $row}


                            <div class="thumbnail" style="width: 350px;height: 400px;float: left">
                                <img src="{$_W['attachurl']}{$row['p_pic']}" alt="{$row['p_name']}" style="height: 200px;width: 340px">
                                <div class="caption">
                                    <h3>{$row['title']}</h3>
									活动链接:{php echo MonUtil::str_murl($this->createMobileUrl ( 'auth',array('kid'=>$row['id'],'au'=>Value::$REDIRECT_USER_INDEX),true))}</br>
                                    开始时间：{php echo date("Y-m-d H:i", $row['starttime'])}</br>
                                    结束时间：{php echo date("Y-m-d H:i", $row['endtime'])}</br>
                                    <p><a href="{php echo create_url('platform/reply/post', array( 'm' => 'mon_wkj','rid'=>$row['rid']))}" class="btn btn-default" role="button"><i class="glyphicon glyphicon-edit"></i>编辑</a>
                                        <a href="{php echo $this->createWebUrl('joinUser', array( 'kid' => $row['id']))}" class="btn btn-default" role="button"><i class="glyphicon glyphicon-list"></i>参与用户</a>
                                        <a href="{php echo $this->createWebUrl('orderList', array( 'kid' => $row['id']))}" class="btn btn-default" role="button"><i class="glyphicon glyphicon-list"></i>订单</a>
                                        <a href="{php echo $this->createWebUrl('kjManage', array( 'id' => $row['id'], 'op' => 'delete'))}" class="btn btn-default" role="button"  onclick="return confirm('此操作不可恢复，确认删除？');return false;"><i class="glyphicon glyphicon-remove"></i>删除</a></p>
                                </div>
                            </div>

                {/loop}
                {$pager}

            </div>





        </div>

    </div>


</div>


{template 'common/footer'}